package com.xyz.xservice.modules.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

public class DemoUser {

    //如果设置的是在数据库自增，就需要在pojo类中标注。@TableId(type=IdType.AUTO)
    //去掉此注释则将主键交给mybatis-plus
    @TableId(type= IdType.AUTO)
    private Long id;

    private String name;

    private Integer age;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
